<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
%>

<jsp:include page="/comm/header.jsp"></jsp:include>
 <div class="clear"></div>
<!--第1部分开始  --> 
    <div class="wrap1">
    	<div class="blank1"></div>
        
<!--选项卡开始--> 	
<div id="mainTabbox">
 <jsp:include page="../tabboxhead2.jsp"/>
 	<div id="conten">
 		<div class="tab_show" id="con_tabmy_1">
  
<jsp:include page="left.jsp"></jsp:include>
<div class="wrap_left">
	<div class="wrap_m2">
    
	   <div class="wrap_m2_cont">
       
        	<jsp:include page="top.jsp"></jsp:include>                

        <div class="blank1"></div>
            <div class="my04_tt">我发布的代购信息</div>
            <div class="my04_cont">
                <div class="my08_cont_box" id="shopinfo">
                 	<s:if test="totalSize == 0">
                		暂无代购信息
                  	</s:if>
					<s:else>
                    	<ul>
                       	  <li class="t1 tt"><span class="box">名称</span></li> 
                       	  <li class="t2 tt"><span class="box">价格</span></li> 
                       	  <li class="t3 tt"><span class="box">可接受佣金</span></li> 
                       	  <li class="t4 tt"><span class="box">状态</span></li> 
                          <li class="t5 tt"><span class="box">操作</span></li> 
                        
                        </ul> 
	                        <s:iterator value="canBuyList">
	                        	<ul class="tt">
		                       	  <li class="t1">
		                       	  	<span class="box">
		                       	  		<a href="<%=path %>/canBuyDetail.htm?id=<s:property value='canId' />" target="_blank" >
		                       	  			<s:property value="goodsName" />
		                       	  		</a>
		                       	  	</span>
		                       	  </li> 
		                          <li class="t2"><span class="box"><span class="span18">￥<s:property value="price" /></span></span></li> 
		                       	  <li class="t3"><span class="box"><span class="span19">￥<s:property value="serviceFee" /></span></span></li> 
		                       	  <li class="t4">
		                       	  	<span class="box">
		                       	  		<s:if test="status == 0">正常</s:if>
		                       	  		<s:elseif test="status == 1">暂停</s:elseif>
		                       	  		<s:else>下线</s:else>
		                       	  	</span>
		                       	  </li> 
		                          <li class="t5">
		                          	<span class="box">
		                          		<s:if test="status == 0">
		                          			<a href="doShopinfoOperator.htm?id=<s:property value='canId' />&status=1">暂停</a>
		                          			&nbsp;|
		                          			<a href="doShopinfoOperator.htm?id=<s:property value='canId' />&status=2">下线</a>
		                          			&nbsp;|
		                          			<a href="initEditCanBuy.htm?id=<s:property value='canId' />" target="_blank">修改</a>
		                          		</s:if>
		                          		<s:elseif test="status == 1">
		                          			<a href="doShopinfoOperator.htm?id=<s:property value='canId' />&status=0">恢复</a>
		                          			&nbsp;|
		                          			<a href="doShopinfoOperator.htm?id=<s:property value='canId' />&status=2">下线</a>
		                          			&nbsp;|
		                          			<a href="initEditCanBuy.htm?id=<s:property value='canId' />" target="_blank">修改</a>
		                          		</s:elseif>
		                          	</span>
		                          </li> 
		                          <div class="clear"></div>
	                       	 	</ul> 
	                        </s:iterator>
						<div class="clear"></div>
					</s:else>
                </div>
                 <!--页码开始-->
		<div class="page_box">
			<div class="pagewrap">
				<div class="page" id="page">
					<s:if test="totalSize > 0">
						<ul>
							<s:if test="superPage == 1">
								<li>首页</li>
								<li>上一页</li>
							</s:if>
							<s:else>
								<s:url id="firstPage" action="initShopinfo">
									<s:param name="superPage" value="1" />
								</s:url>
								<s:url id="prevPage" action="initShopinfo">
									<s:param name="superPage" value="superPage - 1" />
								</s:url>
								<li><s:a href="%{firstPage}">首页</s:a></li>
								<li><s:a href="%{prevPage}">上一页</s:a></li>
							</s:else>
							<s:iterator value="pageList" status="st">
								<s:if test="pageNumber == '...'">
									<li><s:property value='pageNumber' /></li>
								</s:if>
								<s:elseif test="choose">
									<li class="thisclass"><s:property value='pageNumber' /></li>
								</s:elseif>
								<s:else>
									<s:url id="page#st.index" action="initShopinfo">
										<s:param name="superPage" value="pageNumber" />
									</s:url>
									<li><s:a href="%{page#st.index}"><s:property value='pageNumber' /></s:a></li>
								</s:else>
							</s:iterator>
							<s:if test="superPage == totalPage">
								<li>下一页</li>
								<li>末页</li>
							</s:if>
							<s:else>
								<s:url id="nextPage" action="initShopinfo">
									<s:param name="superPage" value="superPage+1" />
								</s:url>
								<s:url id="lastPage" action="initShopinfo">
									<s:param name="superPage" value="totalPage" />
								</s:url>
								<li><s:a href="%{nextPage}">下一页</s:a></li>
								<li><s:a href="%{lastPage}">末页</s:a></li>
							</s:else>
							<li><span class="pageinfo">共 <strong><s:property value='totalPage' /></strong>页<strong><s:property value='totalSize' /></strong>条
							</span></li>
							<div class="clear"></div>
						</ul>
					</s:if>

				</div>
			</div>

		</div>
		<!--页码结束 -->
            </div>
       
       
       </div>
        

    
    </div>
</div>
<div class="clear"></div>
        
        <!--内容结束-->

 		</div>
 	
 	</div>
 </div>
<!--选项卡结束-->         
             
      </div>

    </div>

<jsp:include page="/comm/bottom.jsp"></jsp:include>
</body>
</html>


<script type="text/javascript">
var queryParams='';
$(function() {
	loadMessCount();
});



</script>
